import { searchVO } from "@/typings";
import requestWithToken from "@/utils/request";

export const getQrCode = () => {
  return requestWithToken("/invite/code/generate", "GET", {});
};
export const withdrawal = (amount: number) => {
  return requestWithToken("/invite/withdrawal", "GET", { amount });
};
export const invited = (invitorId: number) => {
  return requestWithToken("/invite/join", "GET", { invitorId });
};
export const listInvite = (searchVO: searchVO) => {
  return requestWithToken("/invite/list", "GET", searchVO);
};
export const INVITE_TYPE_EXTRACT = "抽成";
export const INVITE_TYPE_INVITE = "邀请";
export const INVITE_TYPE_WITHDRAWAL = "提现";
